/**
 * Copyright (C), 2019-2020, 宇信融汇
 * FileName: FinallyDemo
 * Author:   666
 * Date:     2020/6/30 22:30
 * Description: Finally的使用
 * History:
 * <author>          <time>          <version>          <desc>
 * 666           修改时间           版本号              描述
 */
package c_008.exception;

/**
 * @Classname FinallyDemo
 * @Description TODO
 * @Date 2020/6/30 22:30
 * @Created by 666
 */
public class FinallyDemo {
    public static void main(String[] args) {
        try {
            System.out.println(12 / 0);
        } catch (ArithmeticException e) {
            e.printStackTrace();
            System.out.println("ArithmeticException+异常");
        } catch (Exception e) {
            e.printStackTrace();
            System.out.println("Exception+异常");
        } finally {
            System.out.println("finally只要抛出异常就可以打印");
        }
    }



}
